<template>
	<view class="container">
		<u-swiper :list="list"></u-swiper>
		<m-panel title="上拉刷新和下拉加载混合demo">
		<u-button type="default" @click="toPage('/pages/list/list?id=1')">带参跳转</u-button>
		</m-panel>
	</view>
</template>

<script>
export default {
	components: {},
	data() {
		return {
			list: [
				{
					image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
					title: '昨夜星辰昨夜风，画楼西畔桂堂东'
				},
				{
					image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
					title: '身无彩凤双飞翼，心有灵犀一点通'
				},
				{
					image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
					title: '谁念西风独自凉，萧萧黄叶闭疏窗，沉思往事立残阳'
				}
			]
		};
	},
	methods: {
		toPage(url){
			uni.navigateTo({
				url
			})
		}
	}
};
</script>

<style>
.container {
	padding: 20px;
	font-size: 14px;
	line-height: 24px;
}
</style>
